﻿<%@ Page Title="Register" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Register.aspx.cs" Inherits="Website_ES.Account.Register" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:Panel ID="PanelRegister" runat="server" 
        GroupingText="Registrar novo Usuário"
    
        style="text-align: left; position: relative; top: 0px; left: 340px; width: 258px; margin-left: 0px; margin-right: 0px; height: 507px; z-index: 2;" 
        DefaultButton="ButtonRegister">
        Nome:
        <br />
        <asp:TextBox ID="TextBoxNome" runat="server" Width="200px" 
            ToolTip="Apenas Letras"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="TextBoxNome" CssClass="failureNotification" 
            Display="Dynamic" ErrorMessage="Inserir Nome" ForeColor="#FF3300">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidatorNome" 
            runat="server" ControlToValidate="TextBoxNome" CssClass="failureNotification" 
            Display="Dynamic" ErrorMessage="Nome inválido" ForeColor="#FF3300" 
            ValidationExpression="^[A-Z][a-zA-Z ]+$">*</asp:RegularExpressionValidator>
        <br />
        <br />
        Telefone:
        <br />
        <asp:TextBox ID="TextBoxTel" runat="server" Width="200px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldTelefone" runat="server" 
            ControlToValidate="TextBoxTel" CssClass="failureNotification" 
            ErrorMessage="Inserir telefone" ForeColor="#FF3300">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
            ControlToValidate="TextBoxTel" CssClass="failureNotification" Display="Dynamic" 
            ErrorMessage="Telefone inválido" ForeColor="#FF3300" 
            ValidationExpression="\d{4}-\d{4}">*</asp:RegularExpressionValidator>
        <br />
        <br />
        RG:
        <br />
        <asp:TextBox ID="TextBoxRG" runat="server" ToolTip="Apenas os números" 
            Width="200px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldRG" runat="server" 
            ControlToValidate="TextBoxRG" ErrorMessage="Inserir RG" 
            ForeColor="#FF3300" CssClass="failureNotification">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
            ControlToValidate="TextBoxRG" Display="Dynamic" ErrorMessage="RG inválido" 
            ForeColor="#FF3300" ValidationExpression="^\d{10}$" 
            CssClass="failureNotification">*</asp:RegularExpressionValidator>
        <br />
        <br />
        CPF:
        <br />
        <asp:TextBox ID="TextBoxCPF" runat="server" Width="200px" 
            ToolTip="Apenas os números"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldCPF" runat="server" 
            ControlToValidate="TextBoxCPF" ErrorMessage="Inserir CPF" ForeColor="Red" 
            CssClass="failureNotification">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
            ControlToValidate="TextBoxCPF" CssClass="failureNotification" Display="Dynamic" 
            ErrorMessage="CPF inválido" ForeColor="#FF3300" 
            ValidationExpression="^\d{3}.\d{3}.\d{3}-\d{2}$">*</asp:RegularExpressionValidator>
        <br />
        <br />
        E-mail:
        <br />
        <asp:TextBox ID="TextBoxEmail" runat="server" Width="200px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldEmail" runat="server" 
            ControlToValidate="TextBoxEmail" ErrorMessage="Inserir E-mail" 
            ForeColor="#FF3300" CssClass="failureNotification">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
            ControlToValidate="TextBoxEmail" Display="Dynamic" 
            ErrorMessage="E-mail inválido" ForeColor="#FF3300" 
            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
            CssClass="failureNotification">*</asp:RegularExpressionValidator>
        <br />
        <br />
        Senha:<br />
        <asp:TextBox ID="TextBoxPassword" runat="server" TextMode="Password"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldSenha" runat="server" 
            ControlToValidate="TextBoxPassword" ErrorMessage="Inserir Senha" 
            ForeColor="#FF3300" CssClass="failureNotification">*</asp:RequiredFieldValidator>
        <br />
        <br />
        Confirmar Senha:<br />
        <asp:TextBox ID="TextBoxConfirmPass" runat="server" TextMode="Password"></asp:TextBox>
        <asp:CompareValidator ID="CompareValidatorPass" runat="server" 
            ControlToCompare="TextBoxPassword" ControlToValidate="TextBoxConfirmPass" 
            ErrorMessage="Senha não confere" ForeColor="#FF3300" 
            CssClass="failureNotification" SetFocusOnError="True">*</asp:CompareValidator>
        <br />
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="ButtonRegister" runat="server" 
            style="text-align: center; margin-left: 0px;" 
            Text="Registrar Usuário" onclick="ButtonRegister_Click" />
        <br />
    </asp:Panel>
    <asp:Panel ID="Panel1" runat="server" 
        
        
        style="position: relative; top: -512px; left: 604px; margin-top: 0px; width: 258px; z-index: 3; height: 147px;" 
        CssClass="failureNotification">
        <asp:ValidationSummary ID="ValidationSummary" runat="server" 
            
            style="text-align: left; font-weight: 700; z-index: 1; left: 2px; top: 45px; position: absolute; height: 59px; width: 252px;" />
        <br />
        <asp:Literal ID="LiteralErro" runat="server"></asp:Literal>
    </asp:Panel>
</asp:Content>
